package com.demo.service.impl;

import com.demo.dao.PrjModFucMapper;
import com.demo.service.FunctionService;
import com.demo.vo.Function;
import com.demo.vo.Pro;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FunctionServiceImpl implements FunctionService {
    @Autowired
    private PrjModFucMapper prjModFucMapper;
    @Override
    public List<Function> funcSelect(Integer prjId){
        return prjModFucMapper.selectFunc(prjId);
    }
    @Override
    public Integer updateAllocate(Integer funcId, Integer userId){
        return prjModFucMapper.updateAllocate(funcId, userId);
    }

    @Override
    public List<Pro> selectPrjByUserId(Integer userId) {

        return prjModFucMapper.selectPrjByUserId(userId);
    }
    @Override
    public List<Function> selectFuncByUserId(Integer userId){
        return prjModFucMapper.selectFuncByUserId(userId);
    }
}
